package com.hjl.spring6.tx;

import com.hjl.spring6.tx.controller.BookController;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * @author ServivE
 * @version 0.1
 * @className TxByAnnotationTest
 * @description
 * @date 2024/8/7 21:16
 * @since jdk11
 */
@SpringJUnitConfig(locations = "classpath:beans.xml")
public class TxByAnnotationTest {
    @Autowired
    private BookController bookController;
    @Test
    public void testBuyBook() {
        bookController.buyBook(1,1);
    }
}
